package com.entity;

import javax.persistence.*;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import java.util.Date;

/**
 * 【市政管养】 每日作业情况
 */

@Entity
@Table(name = "daily_work_record")
@Getter @Setter @NoArgsConstructor
public class MaintenanceDailyWorkRecord extends BaseEntity {

    private String level1Name;

    private Integer level2Name;

    @Column(name = "work_date")
    @Temporal(TemporalType.DATE)
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date workDate;

    @Column(name = "work_type")
    private String workType;

    private String workName;

    @Column(name = "work_category", length = 200)
    private String workCategory;

    @Column(name = "worker_count")
    private Integer workerCount;

    @Column(name = "vehicle_count", columnDefinition = "INT default 0")
    private Integer vehicleCount;

    @Column(name = "vehicle_info", length = 200)
    private String vehicleInfo;

    @Column(name = "remark", length = 500)
    private String remark;

}